module("Web",package.seeall)
-------------------------------------------------------------------------
require("Server");
require("json");
require("date");

local sessionidname = "sessionid";
function ProcessRequest(Request,Response)
	local url = "";
	local session_user = "";
	if Request ~= nil then
		url = Request[":url"];
	end
	local content = "";

	
	return false;
end


function OnRecv(fd,data,len)
	local ret = 0;
	while true do
		ret = Server.ProcessHttpData(fd,data,len, ProcessRequest);
		if ret ~= 0 or (not Server.HaveData()) then
			break;
		end
	end
	return ret;
end

function OnConnect(fd)
	return true;
end

function OnDisconnect(fd)
	collectgarbage("collect");
	return true;
end

function Initialize()
	return true;
end

function Release()
	return true;
end
